﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>My JSP 'update.jsp' starting page</title>

    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
  </head>
  
   <body>
   <div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 修改电影类别</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" th:action="@{/fsort/fsortControllerUpdate2}">
      <div class="form-group">
        <div class="label">
          <label>电影类别：</label>
            <input type="hidden" id="sid" name="sid" th:value="${sid}">
        </div>
        <div class="field">
          <input type="text" class="input" name="sname" id="sname" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>电影备注：</label>
        </div>
        <div class="field">
          <textarea name="sremark" class="input" style="height:120px;" id="sremark"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
<script>

    $(function(){
        var sid = $('#sid').val();
        $.get("../gson/updateFsort",{
            sid: sid
        },function(data){

            $('#sid').val(data.sid);
            $('#sname').val(data.sname);
            $('#sremark').val(data.sremark);
        });
    });
</script>
</html>